import post2Portal from 'src/api/common'

export const login = (username,password) => {
  let params = {
    api: '/sys/admin/login',
    methods: 'POST',
    data: {
      account: username,
      password: password,
    }
  }
  return post2Portal(params);
};

export const getMenu = () => {
  let params = {
    api: '/sys/admin/getPermission',
    methods: 'POST',
    data: {}
  }
  return post2Portal(params);
};

